Painter

data class Painter(val painter: Painter, val contentDescription: String? = null) : ChipDecoration.Image

Represents a androidx.compose.ui.graphics.painter.Painter displayed before/after the chip's text. The image will be 24.dp tall and will be tinted with SourceChip.Style.contentColour.

Constructors

Link copied to clipboard
constructor(painter: Painter, contentDescription: String? = null)

Properties

Link copied to clipboard
open override val content: @Composable RowScope.(Modifier) -> Unit

The content to display. The provided modifier must be set on the content. The modifier is used to apply the correct size to the icon/image.

Link copied to clipboard

Optional content description for the image.

Link copied to clipboard
open override val height: Dp

The height of the icon/image.

Link copied to clipboard